package com.etc.controller;

import com.etc.dao.RecordDao;
import com.etc.dao.RecordtimeDao;
import com.etc.entity.Record;
import com.etc.entity.Recordtime;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * Created by Administrator on 2019/5/21.
 */
@RestController
@RequestMapping("rc")
public class RecordController {
    @Autowired
    RecordtimeDao recordtimeDao;
    @Autowired
    RecordDao recordDao;
    @GetMapping(value = "getrecord")
    @ResponseBody
    public List<Recordtime> getrecord(){
       List<Recordtime> list= recordtimeDao.findAll();
        return list;
    }
}
